<?php
require_once(dirname(__FILE__).'/../util/ArrayList.php');

class dirx{
		Function   __construct($dirname) 
	  {
		  
		 $this->dirname=$dirname;
	  }
	  
	  
	  private   $dirname;

	 
	public Function println($paramString) {
		 
	}
	
	
		//List<String> 
	public Function subDirs() {
		 $li=new ArrayList();
		
		
		 try {
			 $f=new File($this->dirname);
			$files = $f	->listFiles(); 
			 foreach ( $files as $f) {
				 try {
					 $li->add($f->getName());
				} catch (Exception $e) {
					// TODO: handle exception
				}
				
			}
		} catch (Exception $e) {
			// TODO: handle exception
		}
		
		return $li;
	}
}